<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@include file="/common/header.jsp"%>
<html>
<head>
    <script type="text/javascript" src="${pageContext.request.contextPath}/script/fusionCharts/JSClass/FusionCharts.js"></script>
    <script type="text/javascript">
        $(function(){
			queryCustomForm();
        });
       //折线图
       function  queryCustomForm() {
           var options ={
               url: '<c:url value="/analysis/CustomAnalysisListJson.do"/>',
               type:'post',
               success:function(resData){
                   var jsonText = resData.xmlData;
                   var customColumn2D = new FusionCharts(baseUrl+"/script/fusionCharts/Charts/Column2D.swf", "customColumn2D", "1000", "450");
                   customColumn2D.render("customColumn2D");
                   customColumn2D.setDataXML(jsonText);
                   customColumn2D.render("customColumn2D");

                   //折线图
                   var customLine = new FusionCharts(baseUrl+"/script/fusionCharts/Charts/Line.swf", "customLine", "1000", "450");
                   customLine.render("customLine");
                   customLine.setDataXML(jsonText);
                   customLine.render("customLine");
               }
           };
           $("#customAnalysis").ajaxSubmit(options);
       }
    </script>
</head>
<body>
<form id="customAnalysis" name="customAnalysis"  method="post">
    <!-- 查询表单 -->
    <div  class="datagrid-toolbar" border="false"  >
            <span>开始日期:</span>
            <input type="text" id="loc_dt_start" name="loc_dt_start" class="easyui-datebox" data-options="editable:false" value="${lastMonth}"/>
            <span>结束日期:</span>
            <input type="text" id="loc_dt_end" name="loc_dt_end" class="easyui-datebox" data-options="editable:false" value="${currentDate}"/>
            <span>机构号:</span>
            <input id="ins_cd" type="text" name="ins_cd"  class="easyui-textbox"  >
            <span>机构名称:</span>
            <input id="ins_cn_nm" type="text" name="ins_cn_nm"  class="easyui-textbox"  >
            <a href="javascript:void(0)" iconCls="icon-search" class="easyui-linkbutton btn" onclick="queryCustomForm()">查询</a>
            <a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm()">重置</a>
    </div>
    <jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>
</form>
<div id="customColumn2D" align="center"></div>
<div id="customLine" align="center"></div>
  </body>
<%@include file="/common/chartHeader.jsp"%>
</html>
